/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.dealer.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 串号信息Entity
 * @author jyangye
 * @version 2018-01-18
 */
public class FxDeaWarehousesn extends DataEntity<FxDeaWarehousesn> {
	
	private static final long serialVersionUID = 1L;
	private String snid;		// snid
	private String waresid;		// waresid
	private String warehouseid;		// warehouseid
	private String snnumber;		// snnumber
	private String snstate;		// snstate
	private Date inwarehousedate;		// inwarehousedate
	private String exchangesourcewarehouseid;		// exchangesourcewarehouseid
	private String exchangesourcestate;		// exchangesourcestate
	private String exchangesourcesnid;		// exchangesourcesnid
	private Date lastchangedate;		// lastchangedate
	private String changeordertype;		// changeordertype
	private String changorderid;		// changorderid
	private String contractmachinekind;		// contractmachinekind
	private String ismodelmachine;		// ismodelmachine
	private String agentcode;		// agentcode
	private String dispatchimeiid;		// dispatchimeiid
	private String electroniccardid;		// electroniccardid
	private String isbadmachine;		// isbadmachine
	private Date beginLastchangedate;		// 开始 lastchangedate
	private Date endLastchangedate;		// 结束 lastchangedate
	
	public FxDeaWarehousesn() {
		super();
	}

	public FxDeaWarehousesn(String id){
		super(id);
	}

	@Length(min=1, max=32, message="snid长度必须介于 1 和 32 之间")
	@ExcelField(title="snid", align=2, sort=10)
	public String getSnid() {
		return snid;
	}

	public void setSnid(String snid) {
		this.snid = snid;
	}
	
	@Length(min=0, max=11, message="waresid长度必须介于 0 和 11 之间")
	@ExcelField(title="waresid", align=2, sort=20)
	public String getWaresid() {
		return waresid;
	}

	public void setWaresid(String waresid) {
		this.waresid = waresid;
	}
	
	@Length(min=0, max=11, message="warehouseid长度必须介于 0 和 11 之间")
	@ExcelField(title="warehouseid", align=2, sort=30)
	public String getWarehouseid() {
		return warehouseid;
	}

	public void setWarehouseid(String warehouseid) {
		this.warehouseid = warehouseid;
	}
	
	@Length(min=1, max=30, message="snnumber长度必须介于 1 和 30 之间")
	@ExcelField(title="snnumber", align=2, sort=40)
	public String getSnnumber() {
		return snnumber;
	}

	public void setSnnumber(String snnumber) {
		this.snnumber = snnumber;
	}
	
	@Length(min=1, max=6, message="snstate长度必须介于 1 和 6 之间")
	@ExcelField(title="snstate", align=2, sort=50)
	public String getSnstate() {
		return snstate;
	}

	public void setSnstate(String snstate) {
		this.snstate = snstate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="inwarehousedate", align=2, sort=60)
	public Date getInwarehousedate() {
		return inwarehousedate;
	}

	public void setInwarehousedate(Date inwarehousedate) {
		this.inwarehousedate = inwarehousedate;
	}
	
	@Length(min=0, max=11, message="exchangesourcewarehouseid长度必须介于 0 和 11 之间")
	@ExcelField(title="exchangesourcewarehouseid", align=2, sort=70)
	public String getExchangesourcewarehouseid() {
		return exchangesourcewarehouseid;
	}

	public void setExchangesourcewarehouseid(String exchangesourcewarehouseid) {
		this.exchangesourcewarehouseid = exchangesourcewarehouseid;
	}
	
	@Length(min=0, max=6, message="exchangesourcestate长度必须介于 0 和 6 之间")
	@ExcelField(title="exchangesourcestate", align=2, sort=80)
	public String getExchangesourcestate() {
		return exchangesourcestate;
	}

	public void setExchangesourcestate(String exchangesourcestate) {
		this.exchangesourcestate = exchangesourcestate;
	}
	
	@Length(min=0, max=32, message="exchangesourcesnid长度必须介于 0 和 32 之间")
	@ExcelField(title="exchangesourcesnid", align=2, sort=90)
	public String getExchangesourcesnid() {
		return exchangesourcesnid;
	}

	public void setExchangesourcesnid(String exchangesourcesnid) {
		this.exchangesourcesnid = exchangesourcesnid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="lastchangedate", align=2, sort=100)
	public Date getLastchangedate() {
		return lastchangedate;
	}

	public void setLastchangedate(Date lastchangedate) {
		this.lastchangedate = lastchangedate;
	}
	
	@Length(min=0, max=50, message="changeordertype长度必须介于 0 和 50 之间")
	@ExcelField(title="changeordertype", align=2, sort=110)
	public String getChangeordertype() {
		return changeordertype;
	}

	public void setChangeordertype(String changeordertype) {
		this.changeordertype = changeordertype;
	}
	
	@Length(min=0, max=32, message="changorderid长度必须介于 0 和 32 之间")
	@ExcelField(title="changorderid", align=2, sort=120)
	public String getChangorderid() {
		return changorderid;
	}

	public void setChangorderid(String changorderid) {
		this.changorderid = changorderid;
	}
	
	@Length(min=0, max=10, message="contractmachinekind长度必须介于 0 和 10 之间")
	@ExcelField(title="contractmachinekind", align=2, sort=130)
	public String getContractmachinekind() {
		return contractmachinekind;
	}

	public void setContractmachinekind(String contractmachinekind) {
		this.contractmachinekind = contractmachinekind;
	}
	
	@Length(min=0, max=1, message="ismodelmachine长度必须介于 0 和 1 之间")
	@ExcelField(title="ismodelmachine", align=2, sort=140)
	public String getIsmodelmachine() {
		return ismodelmachine;
	}

	public void setIsmodelmachine(String ismodelmachine) {
		this.ismodelmachine = ismodelmachine;
	}
	
	@Length(min=0, max=10, message="agentcode长度必须介于 0 和 10 之间")
	@ExcelField(title="agentcode", align=2, sort=150)
	public String getAgentcode() {
		return agentcode;
	}

	public void setAgentcode(String agentcode) {
		this.agentcode = agentcode;
	}
	
	@Length(min=0, max=32, message="dispatchimeiid长度必须介于 0 和 32 之间")
	@ExcelField(title="dispatchimeiid", align=2, sort=160)
	public String getDispatchimeiid() {
		return dispatchimeiid;
	}

	public void setDispatchimeiid(String dispatchimeiid) {
		this.dispatchimeiid = dispatchimeiid;
	}
	
	@Length(min=0, max=32, message="electroniccardid长度必须介于 0 和 32 之间")
	@ExcelField(title="electroniccardid", align=2, sort=170)
	public String getElectroniccardid() {
		return electroniccardid;
	}

	public void setElectroniccardid(String electroniccardid) {
		this.electroniccardid = electroniccardid;
	}
	
	@Length(min=0, max=1, message="isbadmachine长度必须介于 0 和 1 之间")
	@ExcelField(title="isbadmachine", align=2, sort=180)
	public String getIsbadmachine() {
		return isbadmachine;
	}

	public void setIsbadmachine(String isbadmachine) {
		this.isbadmachine = isbadmachine;
	}
	
	public Date getBeginLastchangedate() {
		return beginLastchangedate;
	}

	public void setBeginLastchangedate(Date beginLastchangedate) {
		this.beginLastchangedate = beginLastchangedate;
	}
	
	public Date getEndLastchangedate() {
		return endLastchangedate;
	}

	public void setEndLastchangedate(Date endLastchangedate) {
		this.endLastchangedate = endLastchangedate;
	}
		
}